// mircoApp/new-auction/components/bidding.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    infoData: {
      type: null
    },
    pageName: {
      type: String,
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  lifetimes: {
    attached() {
      let language = wx.getStorageSync("langIndex");
      this.setData({
        language: language.en
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    pickUp() {
      this.triggerEvent('pickUp', {
        id: this.data.infoData.id,
        item: this.data.infoData
      })
    },
    cancelAuction() {
      this.triggerEvent("cancelAuction", {
        id: this.data.infoData.id
      })
    }
  }
})